<?php // validate.php -- Provides information on the validation of these pages

// Include important constants and set admin_home (we need to set the variable since file() doesn't interpret constants in pathnames)

require_once("init.php");
$admin_home = ADMIN_HOME;

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
	<title>XHTML/CSS Validation</title>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
	
	<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
	<meta name="author" content="Dylan J. Sather" />
	<meta name="revised" content= <?php

	/* This script checks the date_modified file to give the date at which a file on the 
	   map was last modified, thus giving us the date at which the map was last revised */

	$date_file = "$admin_home/map_files/validate_date_modified";
	$fh = fopen($date_file, 'r');
	$date = fread($fh, filesize($date_file));
	$date = trim($date);
	fclose($fh);
	print "\"Dylan J. Sather, $date\" />";

	?>

	<meta name="description" content="Grinnell College Campus Lab Map" />
	<meta name="keywords"
		content="Grinnell College, TC Corps, Technology Consultant,
			Computer lab, Map, Dylan J. Sather" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta http-equiv="Content-Script-Type" content="text/javascript" />
	<link rel="stylesheet" type="text/css" href="css/labmap.css" />
      </head>	   

<body>

	<p class="obl">
	  The author has taken the time to ensure that all of the pages on this map contain valid XHTML and CSS
	    <br />
	  If you find that these pages do not <a href="http://validator.w3.org/">validate</a>, please contact the author
	</p>

	<p class ="obl">
	  To find out why validation is important, see <a href="http://validator.w3.org/docs/why.html">this article</a> by the W3C.
	</p>

	<p>
  	  <a href="http://validator.w3.org/check?uri=referer">
      	    <img src="http://www.w3.org/Icons/valid-xhtml10-blue"
              alt="Valid XHTML 1.0 Strict" height="31" width="88" />
    	  </a>
          <a href="http://jigsaw.w3.org/css-validator/">
            <img style="border:0;width:88px;height:31px"
              src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
              alt="Valid CSS!" />
    	  </a>
	</p>

</body>

</html>


 
